package com.sinux.generality.basesupport.utils.kafka.serialization;

import java.util.Map;
import com.alibaba.fastjson.JSON;
import org.apache.kafka.common.serialization.Serializer;

public class TransferObjectSerializer implements Serializer<TransferObject> {
    @Override
    public void configure(Map<String, ?> configs, boolean isKey) {

    }

    @Override
    public byte[] serialize(String topic, TransferObject data) {
        return JSON.toJSONBytes(data);
    }

    @Override
    public void close() {

    }
}
